{% macro gen_form(form) %}
{% import "_my_wtf_macros.html" as my_wtf_macros %}

    <form id="search-user-form" action="{{ url_for('op_bp.event_stat_list') }}" method="post" class="form" role="form">
        {{ my_wtf_macros.form_field(form.event, div_col=4, label_col=4, field_col=7) }}
        {{ my_wtf_macros.form_field(form.date, div_col=4, label_col=4, field_col=7) }}
        <div class="btn-group">
            <button type="submit" class="btn btn-info"
                    id="query-user-btn">
                查询
            </button>
        </div>
    </form>
{% endmacro %}
